package utils

/*
import (
	"github.com/prometheus/client_golang/prometheus"
	"github.com/prometheus/client_golang/prometheus/collectors"
	"qabx.net/probe-server/api/tcp-protocol/Protocol"
	tcp_protocol "qabx.net/probe-server/api/tcp-protocol/Protocol"
)

//统计在线网关数
var NumOnlineGateways = prometheus.NewGauge(prometheus.GaugeOpts{
	Name: "online_gateways_numbers",
	Help: "The number of online gateways",
})

//统计总访问次数
var NumTotalVisits = prometheus.NewCounter(prometheus.CounterOpts{
	Name: "total_visits_numbers",
	Help: "The total number of visits",
})

//统计正常访问次数
var NumSuccessVisits = prometheus.NewCounter(prometheus.CounterOpts{
	Name: "success_visits_numbers",
	Help: "The success number of visits",
})

//统计正常返回次数
var NumSuccessResponds = prometheus.NewCounter(prometheus.CounterOpts{
	Name: "success_respond_numbers",
	Help: "The success number of responds",
})

//统计HeartBeat调用次数
var NumHeartBeat = prometheus.NewCounter(prometheus.CounterOpts{
	Name: "heartbeat_numbers",
	Help: "The number of heartbeat",
})

//统计GetOnlineDeviceList次数
var NumGetOnlineDeviceList = prometheus.NewCounter(prometheus.CounterOpts{
	Name: "GetOnlineDeviceList_numbers",
	Help: "The number of GetOnlineDeviceList",
})

//统计GetDevicePort次数
var NumGetDevicePort = prometheus.NewCounter(prometheus.CounterOpts{
	Name: "GetDevicePort_numbers",
	Help: "The number of GetDevicePort",
})

//统计GetProbes次数
var NumGetProbes = prometheus.NewCounter(prometheus.CounterOpts{
	Name: "GetProbes_numbers",
	Help: "The number of GetProbes",
})

//统计GetUdpPayLoad次数
var NumGetUdpPayLoad = prometheus.NewCounter(prometheus.CounterOpts{
	Name: "GetUdpPayLoad_numbers",
	Help: "The number of GetUdpPayLoad",
})

//统计PingFailed次数
var NumPingFailed = prometheus.NewCounter(prometheus.CounterOpts{
	Name: "PingFailed_numbers",
	Help: "The number of PingFailed",
})

//统计MatchProbe次数
var NumMatchProbe = prometheus.NewCounter(prometheus.CounterOpts{
	Name: "MatchProbe_numbers",
	Help: "The number of MatchProbe",
})

//统计FinishGatewayScan次数
var NumFinishGatewayScan = prometheus.NewCounter(prometheus.CounterOpts{
	Name: "FinishGatewayScan_numbers",
	Help: "The number of FinishGatewayScan",
})

func InitMonitorRegister() (registry *prometheus.Registry) {
	// 创建一个自定义的注册表
	registry = prometheus.NewRegistry()

	// 添加 process 和 Go 运行时指标到自定义的注册表中
	registry.MustRegister(collectors.NewProcessCollector(collectors.ProcessCollectorOpts{}))
	registry.MustRegister(collectors.NewGoCollector())

	//统计在线网关数
	NumOnlineGateways.Set(0)
	registry.MustRegister(NumOnlineGateways)
	//统计总访问数
	registry.MustRegister(NumTotalVisits)
	//统计成功访问次数
	registry.MustRegister(NumSuccessVisits)
	//统计成功返回次数
	registry.MustRegister(NumSuccessResponds)

	//统计各方法调用次数
	registry.MustRegister(NumHeartBeat)
	registry.MustRegister(NumGetOnlineDeviceList)
	registry.MustRegister(NumGetDevicePort)
	registry.MustRegister(NumGetProbes)
	registry.MustRegister(NumGetUdpPayLoad)
	registry.MustRegister(NumPingFailed)
	registry.MustRegister(NumMatchProbe)
	registry.MustRegister(NumFinishGatewayScan)

	return
}*/
